package top.huntwolf.admin.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
 @NoArgsConstructor
 @AllArgsConstructor
public class SearchHistory {


    private String historyId;

    @NotNull(message = "open_id cannot be null")
    private String openId;

    private String content;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

}
